package zouran.service;

import org.springframework.web.multipart.MultipartFile;
import zouran.entity.News;

import java.util.List;
import java.util.Map;

/**
 * @Author: zouran
 * @Description:
 * @Date: Created in 2022 2022/12/3 16:28
 **/
public interface NewsService {
 List<News> select_byTitle(String title);  //通过标题查询
 List<News> select_byAuthor(String author); //通过作者查询
 List<News> getAllNews(); //获得所有文章
 boolean delete_news(News news);
 boolean add_news(News news);
 boolean update_news(News news);
 List<News> select_byWrapper(News news);
 Map<String,Object> upload_file(MultipartFile file);
}
